#include "tdatabaseinfo.h"
#include "tserialize.h"

TDataBaseInfo::TDataBaseInfo(const QString& key):m_key(key) //默认构造
{}

TDataBaseInfo::TDataBaseInfo(const TDataBaseInfo& info):m_key(info.m_key)//拷贝构造
{}

QDataStream& operator<<(QDataStream& out, const Info& users)
{
    return out  << users.m_account
                << users.m_address
                << users.m_nickName;
}

QDataStream& operator>>(QDataStream& in, Info& users)
{
    return in >> users.m_account
              >> users.m_address
              >> users.m_nickName;
}
